package com.domain.vote;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.io.Serializable;

@RedisHash("acticle")
@ToString(callSuper = false)
@Data
@EqualsAndHashCode(callSuper=false)
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {
    private  static final long serialVersionUID = 42L;;

    @Id
    private String id;
    private String name;
    private String description;
    private String url;
    private String slug;
    private int score;
    private Authors authors;
    //
}
